package top.xiaozhaobk.xiaofenshu.note.biz.domain.dataobject;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 笔记收藏表
 * </p>
 *
 * @author xiaozhao
 * @since 2025-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_note_collection")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class NoteCollectionDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 笔记ID
     */
    private Long noteId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 收藏状态(0：取消收藏 1：收藏)
     */
    private Integer status;


}
